<?php

class Core_Form_Admincp_Setting_Security extends Nuo_Form
{
	function init()
	{
		$this -> setTitle('Security Setting') -> setDesc('form-desc.Security Setting');

		$this -> addChild('radio', 'core_captcha_adapter', array(
			'label' => 'Captcha Method',
			'desc' => 'form-desc.Capcha Method',
			'multiOptions' => array(
				'recaptcha' => 'ReCaptcha',
				'image' => 'Image'
			),
		));

		$this -> addChild('text', 'core_recaptcha_publicKey', array(
			'label' => 'ReCaptcha Public Key',
			'desc' => 'form-desc.ReCaptcha Public Key'
		));

		$this -> addChild('text', 'core_recaptcha_privateKey', array(
			'label' => 'ReCaptcha Private Key',
			'desc' => 'form-desc.ReCaptcha Private Key'
		));

		$this -> addChild('yesno', 'core_recaptcha_ssl', array(
			'label' => 'ReCaptcha SSL',
			'desc' => 'form-desc.ReCaptcha SSL'
		));

		$this -> addChild('yesno', 'core_site_ssl', array(
			'label' => 'Use Force SSL Protocol',
			'desc' => 'form-desc.Use Force SSL Protocol',
		));

		$this -> addChild('group', '_footer');

		$this -> _footer -> addChild('submit', '_submit') -> addChild('cancel', '_cancel');
	}

}
